package com.apis;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @Author: lwj
 * @Date: 2018/11/28 0028 17:51
 * @Description: 此项目是  SpringBoot2.0以上版本整合Mybatis
 */
@SpringBootApplication
@MapperScan("com.apis.restful.*.mapper") //@MapperScan("com.winter.mapper")这个注解非常的关键，这个对应了项目中mapper（dao）所对应的包路径，很多同学就是这里忘了加导致异常的
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
}
